package my.pack;

import com.google.sky.Board;
import com.google.sky.MoveResolver;
import com.google.sky.Position;

import java.util.Random;

public class MoveResolverImpl implements MoveResolver {
    @Override
    public Position nextStep(Board board) {
        Random random = new Random(System.currentTimeMillis());
        return board.getPositionAt(random.nextInt(board.getWidth()), random.nextInt(board.getHeight()));
    }

    public String getTeamName() {
        return "team2";
    }
}
